using UnityEngine;
using System.Collections;


public class StatsManager : MonoBehaviour {
	private string m_strName;
	#region Basic stats declaration
	//Base stats
	private int m_nStrength;
	private int m_nAgi;
	private int m_nInt;
	private int m_nLck;
	private int m_nLevel;
	#endregion
	#region Stat Increase declaration
	//Stat increase per level
	private int m_nIncStrength;
	private int m_nIncAgi;
	private int m_nIncInt;
	private int m_nIncLck;
	#endregion
//	TestEvent test;
	#region LoadCharacter
	private void LoadCharacter (){
		// gets stats and level form playerfprefs (will be taken from server)
		m_nStrength = 2;
		m_nAgi = 2;
		m_nInt = 2;
		m_nLck = 2;
		
		m_nLevel = 1;
	}
	#endregion
	#region AddLevel
	private void AddLevel ()
	{
		m_nLevel ++;
		// save level in playerprefs (then pass to server)
		// Adjust stats;
		m_nStrength += m_nIncStrength;
		m_nAgi += m_nIncAgi;
		m_nInt += m_nIncInt;
		m_nLck += m_nIncLck;
		// save stats in playerprefs (then pass to server)
	}
	#endregion
	// Use this for initialization
	void Start () {
//	EventManager.instance.TriggerEvent(test);
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
